﻿' NOTE: If you change the class name "TyranntCharacterService" here, you must also update the reference to "TyranntCharacterService" in Web.config and in the associated .svc file.
Public Class TyranntCharacterService
    Implements ITyranntCharacterService

    Dim character As New CharacterRoutines

#Region "Character Routines"

    Public Function DeleteCharacter(ByVal token As String, ByVal characterID As Integer) As String Implements ITyranntCharacterService.DeleteCharacter
        Return character.DeleteCharacter(token, characterID)
    End Function

    Public Function GenerateStats(ByVal token As String, ByVal characterID As Integer) As String Implements ITyranntCharacterService.GenerateStats
        Return character.GenerateStats(token, characterID)
    End Function

    Public Function GetCharacter(ByVal token As String, ByVal characterID As Integer) As String Implements ITyranntCharacterService.GetCharacter
        Return character.GetCharacter(token, characterID)
    End Function

    Public Function GetCharacters(ByVal token As String) As String Implements ITyranntCharacterService.GetCharacters
        Return character.GetCharacters(token)
    End Function

    Public Function NewCharacter(ByVal token As String, ByVal name As String) As String Implements ITyranntCharacterService.NewCharacter
        Return character.NewCharacter(token, name)
    End Function

    Public Function SelectRace(ByVal token As String, ByVal characterID As Integer, ByVal raceID As Integer, ByVal isMale As Boolean, ByVal imageName As String) As String Implements ITyranntCharacterService.SelectRace
        Return character.SelectRace(token, characterID, raceID, isMale, imageName)
    End Function

    Public Function SelectGuild(ByVal token As String, ByVal characterID As Integer, ByVal guildID As Integer) As String Implements ITyranntCharacterService.SelectGuild
        Return character.SelectGuild(token, characterID, guildID)
    End Function

    Public Function GetCharacterItems(ByVal token As String, ByVal characterID As Integer) As String Implements ITyranntCharacterService.GetCharacterItems
        Return character.GetCharacterItems(token, characterID)
    End Function

    Public Function GetCharacterSkills(ByVal token As String, ByVal characterID As Integer) As String Implements ITyranntCharacterService.GetCharacterSkills
        Return character.GetCharacterSkills(token, characterID)
    End Function

#End Region

#Region "Race Routines"

    Public Function AddRace(ByVal token As String, ByVal raceXML As String) As String Implements ITyranntCharacterService.AddRace
        Return character.AddRace(token, raceXML)
    End Function

    Public Function DeleteRace(ByVal token As String, ByVal raceID As Integer) As String Implements ITyranntCharacterService.DeleteRace
        Return character.DeleteRace(token, raceID)
    End Function

    Public Function GetRaces(ByVal token As String) As String Implements ITyranntCharacterService.GetRaces
        Return character.GetRaces(token)
    End Function

    Public Function GetRace(ByVal token As String, ByVal raceID As Integer) As String Implements ITyranntCharacterService.GetRace
        Return character.GetRace(token, raceID)
    End Function

    Public Function UpdateRace(ByVal token As String, ByVal raceXML As String) As String Implements ITyranntCharacterService.UpdateRace
        Return character.UpdateRace(token, raceXML)
    End Function

#End Region

#Region "Skill Routines"

    Public Function AddSkill(ByVal token As String, ByVal name As String, ByVal description As String) As String Implements ITyranntCharacterService.AddSkill
        Return character.AddSkill(token, name, description)
    End Function

    Public Function DeleteSkill(ByVal token As String, ByVal skillID As Integer) As String Implements ITyranntCharacterService.DeleteSkill
        Return character.DeleteSkill(token, skillID)
    End Function

    Public Function GetSkills(ByVal token As String) As String Implements ITyranntCharacterService.GetSkills
        Return character.GetSkills(token)
    End Function

    Public Function UpdateSkill(ByVal token As String, ByVal skillID As Integer, ByVal name As String, ByVal description As String) As String Implements ITyranntCharacterService.UpdateSkill
        Return character.UpdateSkill(token, skillID, name, description)
    End Function

#End Region

#Region "Item Routines"

    Public Function AddItem(ByVal token As String, ByVal itemXML As String) As String Implements ITyranntCharacterService.AddItem
        Return character.AddItem(token, itemXML)
    End Function

    Public Function DeleteItem(ByVal token As String, ByVal itemID As Integer) As String Implements ITyranntCharacterService.DeleteItem
        Return character.DeleteItem(token, itemID)
    End Function

    Public Function GetItems(ByVal token As String) As String Implements ITyranntCharacterService.GetItems
        Return character.GetItems(token)
    End Function

    Public Function GetItem(ByVal token As String, ByVal itemID As Integer) As String Implements ITyranntCharacterService.GetItem
        Return character.GetItem(token, itemID)
    End Function

    Public Function UpdateItem(ByVal token As String, ByVal itemXML As String) As String Implements ITyranntCharacterService.UpdateItem
        Return character.UpdateItem(token, itemXML)
    End Function

    Public Function GetItemTypes(ByVal token As String) As String Implements ITyranntCharacterService.GetItemTypes
        Return character.GetItemTypes(token)
    End Function

#End Region

#Region "Class Routines"

    Public Function AddClass(ByVal token As String, ByVal classXML As String) As String Implements ITyranntCharacterService.AddClass
        Return character.AddClass(token, classXML)
    End Function

    Public Function DeleteClass(ByVal token As String, ByVal classID As Integer) As String Implements ITyranntCharacterService.DeleteClass
        Return character.DeleteClass(token, classID)
    End Function

    Public Function UpdateClass(ByVal token As String, ByVal classXML As String) As String Implements ITyranntCharacterService.UpdateClass
        Return character.UpdateClass(token, classXML)
    End Function

    Public Function GetClass(ByVal token As String, ByVal classID As Integer) As String Implements ITyranntCharacterService.GetClass
        Return character.GetClass(token, classID)
    End Function

    Public Function GetClasses(ByVal token As String) As String Implements ITyranntCharacterService.GetClasses
        Return character.GetClasses(token)
    End Function

#End Region

#Region "Guild Routines"

    Public Function AddGuild(ByVal token As String, ByVal guildXML As String) As String Implements ITyranntCharacterService.AddGuild
        Return character.AddGuild(token, guildXML)
    End Function

    Public Function DeleteGuild(ByVal token As String, ByVal guildID As Integer) As String Implements ITyranntCharacterService.DeleteGuild
        Return character.DeleteGuild(token, guildID)
    End Function

    Public Function GetGuild(ByVal token As String, ByVal guildID As Integer) As String Implements ITyranntCharacterService.GetGuild
        Return character.GetGuild(token, guildID)
    End Function

    Public Function GetGuilds(ByVal token As String) As String Implements ITyranntCharacterService.GetGuilds
        Return character.GetGuilds(token)
    End Function

    Public Function UpdateGuild(ByVal token As String, ByVal guildXML As String) As String Implements ITyranntCharacterService.UpdateGuild
        Return character.UpdateGuild(token, guildXML)
    End Function

#End Region

End Class